/*
 * @Author: C.
 * @Date: 2023-12-11 13:51:49
 */
import AppStorage from '../cache/index'
const TOKEN_KEY = 'token'
const AuthorizationPrifix = 'Ba '
export function getToken(): string {
  return AppStorage.get(TOKEN_KEY)
}
export function setToken(value: string) {
  return AppStorage.set(TOKEN_KEY, value)
}
export function clearToken() {
  return AppStorage.remove(TOKEN_KEY)
}
export function getAuthorization(): string {
  return AuthorizationPrifix + getToken()
}
